package com.shxc.smarttrade.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.shxc.smarttrade.R;


/**
 * 下载
 */
public class DownloadDialog extends Dialog {

    public View view;
    private Context c;
    private ProgressBar  progressbar;
    private TextView persent_textview;

    public DownloadDialog(Context paramContext, int paramInt) {
        super(paramContext, paramInt);
        view = View.inflate(paramContext, R.layout.dialog_download, null);
        this.setContentView(view);
        this.c = paramContext;
        progressbar = findViewById(R.id.progressbar);
        persent_textview = findViewById(R.id.persent_textview);
        this.setContentView(view);
        this.c = paramContext;
    }

    /**
     * 显示生日弹出框
     */
    public void showDialog() {
        this.show();
    }

    public void cancel() {
        if (!isShowing())
            return;
        super.cancel();
    }

    public void show() {
        if (isShowing())
            return;
        super.show();
    }

    public ProgressBar getProgressbar() {
        return progressbar;
    }

    public TextView getPersent_textview() {
        return persent_textview;
    }
}
